﻿using HoverTree.BLL;
using HoverTree.HoverTreeFrame;
using HoverTree.Model;
using System;

namespace HoverTreeMobile.hvtimg
{
    public partial class HvtPic : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string  m_fileName=RequestHelper.GetQueryString("hvtf");
            if(m_fileName==string.Empty)
            {
                Response.Write("何问起提醒：图片不存在。");
                Response.End();
            }

            PictureSelect m_select = new PictureSelect();
            m_select.HvtFileName = m_fileName;

            HvtPicture m_bll = new HvtPicture();

            PictureInfo m_info = new PictureInfo();
            m_info= m_bll.Get(m_select);

            if(m_info==null)
            {
                Response.Write("何问起提醒：图片不存在。");
                Response.End();
            }

            imgHvt.ImageUrl = m_info.HvtSrc;
        }
    }
}